<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_product_commission".
 *
 * @property int $id
 * @property int $product_id
 * @property float $vip1
 * @property float $vip2
 * @property float $vip3
 * @property int $n1
 * @property int $n2
 * @property float $r1
 * @property float $r2
 * @property float $r3
 * @property float $r4
 * @property float $r5
 * @property float $r6
 * @property float $r7
 * @property float $r8
 * @property float $r9
 * @property float $r10
 * @property float $r11
 * @property float $r12
 * @property float $r101
 * @property float $r102
 * @property float $r103
 * @property float $r201
 * @property float $r202
 * @property float $r203
 * @property float $r204
 */
class SetProductCommission extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_product_commission';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['product_id'], 'integer'],
            [['vip1', 'vip2', 'vip3', 'n1', 'n2', 'n11', 'n22'], 'number'],

            [['r1', 'r2', 'r3', 'r4', 'r5'], 'safe'],
            [['r6', 'r7', 'r8', 'r9', 'r10'], 'safe'],
            [['r11', 'r12'], 'safe'],
            [['r101', 'r102', 'r103', 'r201', 'r202', 'r203', 'r204'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'product_id' => 'Product ID',
            'vip1' => 'Vip 1',
            'vip2' => 'Vip 2',
            'vip3' => 'Vip 3',
        ];
    }
}
